package writtenexamination.meicai;

import javax.ws.rs.GET;
import java.util.Scanner;

/**
 * @author cyt
 * @create 2020-10-14 下午 7:37
 */
public class Ta {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] split = str.split("#");
        System.out.println(get(split[0], split[1]));
    }

    public static String get(String var1, String var2) {
        StringBuffer buffer = new StringBuffer();
        char[] chars = new StringBuffer(var1).reverse().toString().toCharArray();
        char[] chars1 = new StringBuffer(var2).reverse().toString().toCharArray();
        int len1 = chars.length;
        int len2 = chars1.length;

        int maxLen = len1 > len2 ? len1 : len2;
        int[] res = new int[maxLen + 1];

        for (int i = 0; i < maxLen + 1; i++) {
            int aint = i < len1 ? (chars[i] - '0') : 0;
            int bint = i < len2 ? (chars1[i] - '0') : 0;
            res[i] = aint + bint;
        }
        for (int i = 0; i < res.length; i++) {
            if (res[i] > 10) {
                res[i + 1] += res[i] / 10;
                res[i] %= 10;
            }
        }

        boolean flag = true;
        for (int i = maxLen; i >= 0; i--) {
            if (res[i] == 0 && flag) {
                continue;
            } else {
                flag = true;
            }
            buffer.append(res[i]);
        }
        return buffer.toString();
    }


}

